package team.jaman.autosell.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 订单实体类
 * @author Administrator
 *
 */
public class Orders implements Serializable {
    // 订单编号
    private String orderId;

    // 用户编号
    private Integer userId;

    // 订单总价
    private BigDecimal orderTotalprice;

    // 付款方式
    private Integer payment;

    // 付款时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date paytime;

    // 订单状态
    private Integer orderStatus;

    // serialVersionUID
    private static final long serialVersionUID = 1L;
    
    // 用户实体类
    private Users users;

    /**
	 * @return the users
	 */
	public Users getUsers() {
		return users;
	}

	/**
	 * @param users the users to set
	 */
	public void setUsers(Users users) {
		this.users = users;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	/**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orders.order_id
     *
     * @return the value of orders.order_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orders.order_id
     *
     * @param orderId the value for orders.order_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orders.user_id
     *
     * @return the value of orders.user_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orders.user_id
     *
     * @param userId the value for orders.user_id
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orders.order_totalprice
     *
     * @return the value of orders.order_totalprice
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public BigDecimal getOrderTotalprice() {
        return orderTotalprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orders.order_totalprice
     *
     * @param orderTotalprice the value for orders.order_totalprice
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setOrderTotalprice(BigDecimal orderTotalprice) {
        this.orderTotalprice = orderTotalprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orders.payment
     *
     * @return the value of orders.payment
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getPayment() {
        return payment;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orders.payment
     *
     * @param payment the value for orders.payment
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setPayment(Integer payment) {
        this.payment = payment;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orders.paytime
     *
     * @return the value of orders.paytime
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Date getPaytime() {
        return paytime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orders.paytime
     *
     * @param paytime the value for orders.paytime
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column orders.order_status
     *
     * @return the value of orders.order_status
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public Integer getOrderStatus() {
        return orderStatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column orders.order_status
     *
     * @param orderStatus the value for orders.order_status
     *
     * @mbg.generated Tue Jun 16 10:44:18 CST 2020
     */
    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }
}